cmake_minimum_required(VERSION 3.0.0)
project(app VERSION 0.1.0 LANGUAGES C)

include_directories(
    ../fatfs/source
)

add_definitions(-D_CONSOLE -D_CRT_SECURE_NO_WARNINGS -D_TCHAR_DEFINED)

add_executable(app app.c ../fatfs/source/ff.c ../fatfs/source/diskio.c ../fatfs/source/ffsystem.c ../fatfs/source/ffunicode.c)

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
